#include "MyLoger.h"
#include <iostream>
/* #include <string> */

using std::cout;
using std::endl;
/* using std::string; */
/* using std::to_string; */
#if 0
string func(const string &msg)
{
    /* std::ostrstream oss; */
    /* oss << __LINE__; */
    /* oss.str(); */
    string tmp = string(__FILE__) + string(":")  
    + string(__FUNCTION__) + string(":")
    + string(to_string(__LINE__)) + string(":") + string(msg);

    return tmp;
}
#endif

void test()
{
    /* MyLogger::getInstnace()->error("This is an error message"); */
    /* MyLogger::getInstnace()->debug("This is an debug message"); */
    /* MyLogger::getInstnace()->error(prefix("This is an error message").c_str()); */
    logError("This is an error message");
}

void test2()
{
    cout << "文件名字 " << __FILE__
         << ",  函数名字 " << __FUNCTION__
         << ", 行号 " << __LINE__ << endl;
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

